package com.meta.platform.sms.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * Created by onefish on 2017/7/7 0007.
 */
@Configuration
@ConditionalOnExpression("${sms.huawei.enable:false}")
@Data
public class HuaweiSmsPushConfig {

    @Value("${sms.huawei.smsServer}")
    public String smsServer;

    @Value("${sms.huawei.endPoint}")
    public String endPoint;

    @Value("${sms.huawei.product}")
    public String product;

    @Value("${sms.huawei.domain}")
    public String domain;

    @Value("${sms.huawei.accessKey}")
    public String accessKey;

    @Value("${sms.huawei.secret}")
    public String secret;
    
}
